Skip to content

Conversation

@casten
Copy link
Contributor

@casten casten commented Apr 11, 2025

Detect max quality level dynamically.
This will select 2 for standard Pico 2's and 5 for standard Pico's.
Tested on Pico and Pico 2.

Note that the the code for Adafruit_CircuitPython_OV5640, the acceptable range of the quality says:
"""Controls the JPEG quality. Valid range is from 2..55 inclusive"""
However, the value 55 is not included, so grammatically I'd say this is inaccurate.
https://github.com/jerryneedell/Adafruit_CircuitPython_OV5640/blob/main/adafruit_ov5640/__init__.py#L1495
I've adjust my comment in the code to indicate such.

casten added 3 commits April 10, 2025 22:31
Detect max quality level dynamically.
This will select 2 for standard Pico 2's and 5 for standard Pico's.
@dhalbert dhalbert requested a review from BlitzCityDIY April 13, 2025 22:55
Copy link
Collaborator

@BlitzCityDIY BlitzCityDIY left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great, i like this approach

@BlitzCityDIY BlitzCityDIY merged commit 6bce301 into adafruit:main Apr 14, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants